package chapter6.No6_1_立即加载_饿汉模式.demo4;

/**
 * 延迟加载/懒汉模式 多线程环境下的问题
 *
 * 解决办法1：同步方法
 * Created by Administrator on 2016/11/25.
 */
public class Main {
    public static void main(String[] args) {
        MyThread a = new MyThread();
        MyThread b = new MyThread();
        MyThread c = new MyThread();
        a.start();
        b.start();
        c.start();
    }
}
